<%--
  Created by IntelliJ IDEA.
  User: 86175
  Date: 2023/5/18
  Time: 22:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap/5.2.3/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <form method="post" action="UpdataServlet">
        <div style="width: 50%;margin: 50px auto 0 auto" class="row g-3">
            <c:forEach items="${rows}" var="column">
                <div>
                    <label for="${column.key}" class="form-label">${column.key}</label>
                    <input type="text" name="${column.key}" value="${column.value}" class="form-control"
                           id="${column.key}">
                    <input type="hidden" name="column" value="${column.key}"/>
                    <input type="hidden" name="${column.key}_old" value="${column.value}" class="form-control">
                    <input type="hidden" name="oldColumn" value="${column.key}"/>
                    <input type="hidden" name="tableName" value="${tablename}"/>
                </div>
            </c:forEach>
            <div style="width: 100%;margin: auto;text-align: center">
                <button style="width: 50%;margin:20px auto 0 auto" type="submit" class="btn btn-primary">修改</button>
            </div>

        </div>
    </form>
</div>
</body>

</html>
